<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="socnet.controller.*" %>
<%@ page import="socnet.model.*" %>
<%@ page import="java.util.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link href="./login.css" rel="stylesheet" type="text/css" />


<body>

<div class="container">
  <div class="header">
  <a href="http://localhost:8040/NKA-soc-net/myPage.jsp"><img src="images/profile.jpg" alt="Insert Logo Here" align="left" name="insert_logo" width="100" height="100" id="Insert_logo2" style="background-color: #8090AB; " /></a>
  <img src="images/GEEK_small.jpg" alt="Insert Logo Here" name="insert_logo" width="100" align="right" height="100" id="Insert_logo" style="background-color: #8090AB; display:block; "/><!-- end .header --></div>
 <br />
  <form id="form1" name="form1" method="post" action="" >
    <input type="text" name="search" id="search" />
    <input type="submit" name="searchB" id="searchB" value="Search" />
  </form>
  <br />
  <br />
    
  <div id="menu">
		<ul>
			<li><a href="groups.jsp" class="link">Groups</a></li>
			<li><a href="messages.jsp" class="link">Messages</a></li>
			<li><a href="myContacts.jsp" class="link">Contacts</a></li>
            <li><a href="myPictures.jsp" class="link">Pictures</a></li>
		</ul>
  </div>
  <fieldset>
  <% 
  SocnetController socnet = new SocnetController();
  String email;
  socnet.startDB();
//  email = session.getAttribute("email").toString();
/*  email = "bata.andras@gmail.com";
  List<Photo> pictures = socnet.getPhotos(email);
  Iterator<Photo> it = pictures.iterator();
  while(it.hasNext) {
	  Photo photo = it.next(); */
  
  for(int i=1;i<=8;i++)  { %>
    <fieldset style="width: 280px; float:left; border-style: none;">
    <a href="http://localhost:8040/NKA-soc-net/kep<%=i%>.jsp"><img src="images/NoGeek.png" width="200" height="200" style="margin-left: 50px; margin-right: 50px; margin-top:50px "/></a>
 	<br />
 	<input name="picture"<%=i %>" type="text" value="Picture<%=i %>" readonly="readonly" style=" text-align: center;  margin-left: 80px;  margin-right: 80px;"/>
 	<input name="Delete<%=i %>" type="button" value="Delete" style=" text-align: center;  margin-left: 80px;  margin-right: 0px;"></input>
 	<a href="" onclick="document.getElementById('upload').click(); return false" style="color: #FFF; text-align: center;  margin-left: 20px;  margin-right: 0px;"> Modify </a>
 	</fieldset>
 	
 	<%if(i%3==0) %> <br />
 	<%} 
 	socnet.stopDB();%> 
	  <input type="file" id="upload" name="upload" style="visibility: ; width: 1px; height: 1px" multiple />
	  <a href="" onclick="document.getElementById('upload').click(); return false" style="color: #FFF;">Upload</a>
	<br />
  </fieldset>

  <!-- end .sidebar1 --></div>
  <div class="content"></div>

  <!-- end .container --></div>
</body>
</html>